package com.hoshiicloud.rbac.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysUsers对象", description = "用户")
public class SysUsers extends Model<SysUsers> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	private Long id;

	@ApiModelProperty(value = "组织id")
	private Long deptId;

	@ApiModelProperty(value = "帐号")
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "姓名")
	private String realName;

	@ApiModelProperty(value = "头像")
	private String avatar;

	@ApiModelProperty(value = "电话")
	private String phone;

	@ApiModelProperty(value = "邮箱")
	private String email;

	@ApiModelProperty(value = "性别")
	private Integer sex;

	@ApiModelProperty(value = "状态(0:正常,1:锁定)")
	private Integer locked;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdTime;

	@ApiModelProperty(value = "创建人")
	private String createdBy;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime modifiedTime;

	@ApiModelProperty(value = "修改人")
	private String modifiedBy;

	@ApiModelProperty(value = "职务")
	private String title;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
